package com.hsy.crm.web.domain.entity;

import com.hsy.crm.web.domain.cm.Validate;

import javax.persistence.Column;
import javax.persistence.Table;

/**
 * 平台注册客户  最最基础数据
 */
@Table(name = "sys_platform_customer")
public class PlatformCustomer extends BaseEntity{

    @Column(length = 10)
    private String platCustomerId;

    @Column(length = 5)
    private String contact;

    @Column(length = 20)
    private String contactPhone;

    @Column(length = 30)
    private String companyName;

    @Column(length = 11)
    private Integer industryType;

    @Column(length = 20)
    private String remarks;

    /**
     * 授权客户数
     */
    @Column(length = 11)
    private Integer userNumber;

    /**
     * 账户授权过期时间
     * 注册时：注册时间 - 20191212
     * 续费时：延长时间 = 延长后的截止时间 - 20191212
     */
    @Column(length = 11)
    private Integer expiryTime;

    @Validate
    private Long createTime;

    @Validate(insert=false,update=true)
    private Long updateTime;

    public Integer getExpiryTime() {
        return expiryTime;
    }

    public void setExpiryTime(Integer expiryTime) {
        this.expiryTime = expiryTime;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public Integer getIndustryType() {
        return industryType;
    }

    public void setIndustryType(Integer industryType) {
        this.industryType = industryType;
    }

    public Integer getUserNumber() {
        return userNumber;
    }

    public void setUserNumber(Integer userNumber) {
        this.userNumber = userNumber;
    }

    public String getPlatCustomerId() {
        return platCustomerId;
    }

    public void setPlatCustomerId(String platCustomerId) {
        this.platCustomerId = platCustomerId;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public String getContact() {
        return contact;
    }

    public void setContact(String contact) {
        this.contact = contact;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public Long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String getDynamicTableName() {
        return "sys_platform_customer";
    }
}
